"""APP v1接口路由"""
from fastapi import APIRouter

from app.controller.app import login, metadata, designers, mine, opening, home, manage, media, upload


router = APIRouter()

router.get("/opening", summary="【苗雨露】首屏模块-首屏页")(opening.opening)
router.get("/metadata", summary="【苗雨露】公共模块-元数据")(metadata.metadata)
router.get("/upload/token", summary="【苗雨露】公共模块-七牛上传令牌")(upload.upload_token)
router.post("/login/sendcaptcha", summary="【苗雨露】登陆模块-发送验证码")(login.send_captcha)
router.post("/login/captcha", summary="【苗雨露】登陆模块-登陆")(login.login)
router.post("/login/invitationcode", summary="【苗雨露】登陆模块-验证邀请码")(login.invitation_code)
router.post("/logout", summary="登陆模块-退出")(login.logout)
router.get("/famous/designers", summary="【苗雨露】大师模块-大师列表")(designers.masters)
router.get("/famous/opuses", summary="【苗雨露】大师模块-大师案例")(designers.master_case)
router.get("/famous/designers/{master_id}", summary="【苗雨露】大师模块-大师详情")(designers.master_detail)

router.get("/mine/interest", summary="【苗雨露】我的模块-兴趣标签列表")(mine.get_interest_tags)
router.post("/mine/interest", summary="【苗雨露】我的模块-保存兴趣标签")(mine.save_interest_tags)
router.post("/mine/collects/{enshrines_id}", summary="【苗雨露】我的模块-收藏")(mine.enshrine)
router.delete("/mine/collects/{enshrines_id}", summary="【苗雨露】我的模块-取消收藏")(mine.del_enshrine)
router.get("/mine/follow/followers", summary="【苗雨露】我的模块-关注列表")(mine.followers_list)
router.post("/mine/follow/followers/{follow_user_id}", summary="【苗雨露】我的模块-关注")(mine.followers)
router.delete("/mine/follow/followers/{follow_user_id}", summary="【苗雨露】我的模块-取消关注关注")(mine.del_followers)
router.get("/mine/follow/fans", summary="【苗雨露】我的模块-粉丝列表")(mine.fans)
router.get("/mine/likes", summary="【苗雨露】我的模块-点赞列表")(mine.like_list)
router.post("/mine/likes/{like_id}", summary="【苗雨露】我的模块-点赞")(mine.likes)
router.delete("/mine/likes/{like_id}", summary="【苗雨露】我的模块-取消点赞")(mine.del_likes)
router.get("/mine/comments", summary="【苗雨露】我的模块-评论列表")(mine.comment_list)
router.post("/mine/comments/{like_id}/likes", summary="【苗雨露】我的模块-评论点赞")(mine.comment_like)
router.delete("/mine/comments/{like_id}/likes", summary="【苗雨露】我的模块-取消点赞评论")(mine.comment_del_like)
router.get("/mine/custom/tags", summary="【苗雨露】我的模块-获取自定义标签")(mine.custom_tag_list)
router.post("/mine/custom/tags", summary="【苗雨露】新增自定义标签")(mine.add_custom_tags)
router.delete("/mine/custom/tags", summary="【苗雨露】我的模块-删除自定义标签")(mine.del_custom_tags)
router.get("/mine/collect", summary="【苗雨露】我的模块-收藏列表")(mine.enshrine_list)
router.get("/mine/user/info", summary="【苗雨露】我的模块-获取编辑个人资料")(mine.get_user_info)
router.post("/mine/user/info", summary="【苗雨露】我的模块-更新编辑个人资料")(mine.update_user_info)
router.get("/mine/messages/kinds", summary="【苗雨露】我的模块-消息类型列表")(mine.message_kind_list)
router.get("/mine/messages/kinds/{kid}", summary="【苗雨露】我的模块-某类型消息列表")(mine.kind_message_list)
router.get("/mine/home", summary="【苗雨露】我的模块-我的主页")(mine.user_home)
router.get("/mine/browse/history", summary="【苗雨露】我的模块-浏览记录")(mine.history_list)
router.get("/mine/login/mobile", summary="【苗雨露】我的模块-获取手机号")(mine.get_mobile)
router.get("/mine/check/version", summary="【苗雨露】我的模块-版本检测")(mine.check_version)
router.post("/mine/replace/mobile/old/captcha", summary="【苗雨露】我的模块-验证旧手机验证码")(mine.val_old_mobile)
router.post("/mine/replace/mobile/new/captcha", summary="【苗雨露】我的模块-验证新手机验证码并修改手机号")(mine.val_new_mobile)

router.get("/home/recommend", summary="【鸣人】首页模块-推荐列表")(home.recommend_medias)  # 【鸣人】未实现
router.get("/home/follow/followers", summary="【鸣人】首页模块-关注列表")(home.follow_followers)  # 【鸣人】未实现
router.get("/home/items", summary="【鸣人】首页模块-列表（全屋案例、3D全景...）")(home.index_items)
router.get("/home/search/related/words", summary="【鸣人】首页模块-关键词搜索联想词列表")(home.search_related_words)  # TODO 【鸣人】未实现
router.get("/home/search/items", summary="【鸣人】首页模块-搜索列表")(home.search_items)  # TODO 【鸣人】未实现
# router.post("/home/search/image/upload", summary="【鸣人】首页模块-以图搜图上传图")(home.search_image_upload)  # TODO 【鸣人】未实现
router.get("/home/search/image", summary="【鸣人】首页模块-以图搜图列表")(home.search_image)  # TODO 【鸣人】未实现
router.get("/home/search/history", summary="【鸣人】首页模块-搜索词记录（包含历史和热门）")(home.search_history)
router.delete("/home/search/history", summary="【鸣人】首页模块-清空历史搜索词记录")(home.delete_search_history)
router.get("/medias/photo/{id}", summary="【鸣人】首页模块-图片详情接口")(media.photo_detail)
router.get("/medias/multiple/{id}", summary="【鸣人】首页模块-多图详情接口")(media.multiple_detail)
router.get("/medias/video/{id}", summary="【鸣人】首页模块-视频详情接口")(media.video_detail)
router.get("/medias/graphic/{id}", summary="【鸣人】首页模块-图文详情接口")(media.graphic_detail)
router.get("/medias/{id}/comments", summary="【鸣人】首页模块-媒体评论列表")(media.detail_comments)
router.post("/medias/{id}/comments", summary="【鸣人】首页模块-媒体发表评论")(media.create_detail_comment)
router.get("/medias/graphic/{id}/recommended", summary="【鸣人】首页模块-图文详情推荐接口")(media.detail_recommend)  # 【鸣人】未实现
router.get("/medias/{id}/comments/{commentId}", summary="【鸣人】首页模块-媒体评论二级评论列表")(media.detail_comment_comments)
router.get("/home/share/poster", summary="【鸣人】首页模块-卡片分享海报图片")(home.empty)  # TODO 【鸣人】未实现

router.get("/manage/medias", summary="【鸣人】图片管理-全部图片")(manage.my_medias)
router.get("/manage/folders", summary="【鸣人】图片管理-获取文件夹列表")(manage.folders)
router.post("/manage/folders", summary="【鸣人】图片管理-新建文件夹")(manage.create_folder)
router.post("/manage/folders/{id}/medias", summary="【鸣人】图片管理-添加N个媒体（图、图文...）到文件夹")(manage.add_medias2folder)
router.delete("/manage/medias", summary="【鸣人】图片管理-删除N个媒体（图、图文...）")(manage.delete_medias)
router.get("/manage/medias/{id}", summary="【鸣人】图片管理-获取编辑单图、多图、图文信息")(manage.get_media_edit)
router.post("/manage/medias/{id}", summary="【鸣人】图片管理-编辑单图、多图、图文信息")(manage.update_media_edit)
router.get("/manage/folders/home", summary="【鸣人】图片管理-我的文件夹")(manage.my_folders)
router.get("/manage/folders/{id}", summary="【鸣人】图片管理-文件夹详情")(manage.folder_detail)
router.get("/manage/search/folders/{id}", summary="【鸣人】图片管理-文件夹内搜索")(manage.folder_search)
router.post("/manage/medias", summary="【鸣人】图片管理-新增媒体（图片）")(manage.create_media)
router.get("/manage/folders/{id}/edit", summary="【鸣人】图片管理-获取编辑文件夹")(manage.get_folder_edit)
router.post("/manage/folders/{id}", summary="【鸣人】图片管理-编辑文件夹")(manage.update_folder_edit)
router.get("/manage/collects", summary="【鸣人】图片管理-我的收藏列表")(manage.my_collects)
router.get("/manage/recycle", summary="【鸣人】图片管理-回收站")(manage.my_recycle)
router.delete("/manage/recycle/all", summary="【鸣人】图片管理-清空回收站")(manage.delete_recycle_all)
router.delete("/manage/recycle", summary="【鸣人】图片管理-删除回收站选中数据")(manage.delete_recycle)
router.post("/manage/recycle/restore", summary="【鸣人】图片管理-恢复回收站选中数据")(manage.restore_recycle)
router.post("/manage/folders/medias/move", summary="【鸣人】图片管理-移动选中文件夹文件到其他文件夹")(manage.move_folder_media)
router.delete("/manage/folders", summary="【鸣人】图片管理-删除文件夹")(manage.delete_folder)
router.get("/manage/search/all/folders", summary="【鸣人】图片管理-全部图片搜索-文件夹")(manage.search_folders)
router.get("/manage/search/all/medias", summary="【鸣人】图片管理-全部图片搜索-图片")(manage.search_medias)
